{% extends "reviews/base.html" %}
{% load static %}

{% block title %}Your Review{% endblock %}

{% block content %}
  <form action="/" method="POST">
    {% csrf_token %}
  {#  {% if has_error %}#}
  {#    <p>This form is invalid</p>#}
  {#  {% endif %}#}
  {#  <label for="username">Your name</label>#}
  {#  <input id="username" name="username" type="text">#}

  {#  {{ form }}#}

    {% for field in form %}
      <div class="form-control {% if field.errors %}errors{% endif %}">
      {{ field.label_tag }}
      {{ field }}
      {{ field.errors }}
    </div>
    {% endfor %}

    <button type="submit">Send</button>
  </form>
{% endblock %}

